所有得獎者資料儲存於 list.json 檔案裡,透過 input.py 手動輸入。
再透過 lottery.py 讀取出所有參加者後,透過 Python 的 random 函式選取一個隨機物件,並透過 print 函式印出到 command line,而第一次 print 成功的結果即為得獎者。
Search
所有得獎者資料儲存於 list.json 檔案裡,透過 input.py 手動輸入。
再透過 lottery.py 讀取出所有參加者後,透過 Python 的 random 函式選取一個隨機物件,並透過 print 函式印出到 command line,而第一次 print 成功的結果即為得獎者。